package net.thxjj.mobileServer.dao;

import net.thxjj.mobileServer.entity.EmailCodeBean;
import net.thxjj.mobileServer.util.ParameterMap;
import net.thxjj.sitermodel.MobileUser;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface UaaDao {
    public void register(MobileUser mobileUser);

    public void updatePassword(ParameterMap map);

    public void updateEmailCodeStatus(ParameterMap mp);

    public Integer getUserCount(@Param("username")String username,@Param("pid")String pid);

    public MobileUser getUser(@Param("username")String username,@Param("pid")String pid);

    public long insertEmailCode(EmailCodeBean emailCodeBean);

    public long getCoumntOfSessionEmailCode(@Param("sessionId") String sessionId);

    public EmailCodeBean getRegisterEmailCode(@Param("sessionId") String sessionId,@Param("email") String email,@Param("code") String code,@Param("pid") String pid);

    public EmailCodeBean getResetEmailCode(@Param("sessionId") String sessionId,@Param("email") String email,@Param("code") String code,@Param("pid") String pid);

}
